#include<bits/stdc++.h>
#define MAXN 100005
using namespace std;
inline int read(){
    int x=0,f=1;
    char ch=getchar();
    while(ch<'0'||ch>'9'){
        if(ch=='-') f=-1;
        ch=getchar();
    }
    while(ch>='0'&&ch<='9'){
        x=x*10+ch-48;
        ch=getchar();
    }
    return x*f;
}
int n,r[MAXN],ans;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    n=read(),r[n+1]=INT_MAX,ans=n;
    for(int i=1;i<=n;i++) r[i]=read();
    sort(r+1,r+n+1);
    int j=1;
    for(int i=1;i<=n;i++){
        while(!(j!=i&&r[j]>r[i])) j++;
        if(j==n+1) break;
        ans--,j++;
    }
    printf("%d\n",ans);
    return 0;
}